<div ng-include src="'tpl/public/header.html'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">热销产品</li>
  </ol>
  <div class="row">
    <div class="col-md-10" style="text-align:right">
      <button class="btn btn-default" ng-click="toAddHot();">添加热销产品</button>
    </div>
  </div>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th></th>
        <th>产品名称</th>
        <th>产品类型</th>
        <th>添加热销时间</th>
        <th>添加人</th>
        <th>排序</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="i in [0, 1, 2, 3]">
        <td>{{$index + 1}}</td>
        <td>置顶产品测试app二期交易通知{{$index}}</td>
        <td>信托</td>
        <td>2015-12-24 16:23</td>
        <td>xx</td>
        <td>1</td>
        <td><a href="#/{{i}}">删除热销</a></td>
      </tr>
    </tbody>
  </table>

  <div class="layer-box" ng-show="hot.isShow">
    <div class="layer-bg"></div>
    <div class="layer-con " style="padding:10px 20px;">
      <span class="icons-close" title="关闭" ng-click="hot.isShow = false;">X</span>
      <div class="layer-title">
        请选择
      </div>
      <div class="con-wrap">
        <div class="form-group">
          <div class="col-md-6">
            <select class="form-control" ng-model="hot.type" ng-options="p.value as p.text for p in dictMap.faUserCustomerLable" placeholder="选择产品类型"><option value=""></option></select>
          </div>
          <div class="col-md-6">
            <div class="dropdown">
              <ul class="dropdown-menu" style="display:block">
                <li>
                  <input type="text" class="form-control" ng-model="firstParam" style="width:90%">
                </li>
                <li class="divider"></li>
                <li ng-repeat="p in [0,1,2,3,4,5,6] | filter:firstParam" ng-click="chooseProduct('0', p.code, pts.firstPt)"><span>{{p}}</span></li>
              </ul>
            </div>
          </div>
        </div>
        <div class="form-group">

        </div>
      </div>
    </div>
  </div>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>
